package com.beidu.lottery.call.entity.dto;

import com.beidu.lottery.call.entity.mq.ActivityBaseDTO;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 报名活动DTO
 *
 * @author 北渡
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ActivityRegDTO extends ActivityBaseDTO {

    /**
     * 参与ID
     */
    @NotNull(message = "参与ID不能为空")
    private Integer id;

    /**
     * 活动ID
     */
    @NotNull(message = "活动ID不能为空")
    private Integer activityId;

    /**
     * 动态表单数据（JSON字符串）
     */
    @NotEmpty(message = "动态表单数据不能为空")
    private String formData;

    /**
     * 素材URL数组
     */
    private String materialUrls;

    /**
     * 封面URL
     */
    private String coverUrl;

}
